
package com.huaweicloud.saaslanding.install.properties;

import static com.huaweicloud.saaslanding.install.constant.ModelConstant.ROCKETMQ_PREFIX;

import lombok.Data;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 功能描述
 *
 * @since 2023-03-28
 */
@Data
@Component
@Validated
@ConfigurationProperties(prefix = ROCKETMQ_PREFIX)
@ConditionalOnProperty(prefix = "saaslanding-install.lts", name = "enabled")
public class RocketMQ {
    /**
     * 服务端点
     */
    private String endpoint;

    /**
     * 实例ID
     */
    private String instanceId;

    /**
     * 所属区域
     */
    private String region;
}
